import request from '../../../utils/request'

const api = {
  getReportList(params) {
    return request({
      url: '/jklc/earlyWarning/getList',
      method: 'get',
      params
    })
  },
  addReport(data) {
    return request({
      url: '/jklc/earlyWarning',
      method: 'post',
      data
    })
  },
  getReportHandleList(params) {
    return request({
      url: '/jklc/earlyWarningDispose/getList',
      method: 'get',
      params
    })
  },
  handleReport(data) {
    return request({
      url: '/jklc/earlyWarningDispose',
      method: 'post',
      data
    })
  },
  getUnitTree(params) {
    return request({
      url: '/jklc/tunnel/getTreeAll',
      method: 'get',
      params
    })
  },
}

export default api
